using MediatR;
using B.S.RbacData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SupplierCustomerManagement.Write.API.Applications.Commands.servicepersonals
{
    /// <summary>
    /// 删除服务人员命令
    /// </summary>
    public class DeleteServicePersonalCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 服务人员ID
        /// </summary>
        [Required(ErrorMessage = "服务人员ID不能为空")]
        public int Id { get; set; }

        public DeleteServicePersonalCommand(int id)
        {
            Id = id;
        }
    }
}